package org.mili.ticketeer.dto;

public class Meeting implements Archivable {

    public static enum Fields implements Field {
        DATE,
        CONTACT;
    }

    public static final String TABLE = "meeting";

    private int contact;
    private int date;

    public int getContact() {
        return contact;
    }

    public void setContact(int contact) {
        this.contact = contact;
    }

    public int getDate() {
        return date;
    }

    public void setDate(int date) {
        this.date = date;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Meeting meeting = (Meeting) o;

        if (contact != meeting.contact) return false;
        if (date != meeting.date) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = contact;
        result = 31 * result + date;
        return result;
    }

    @Override
    public String toString() {
        return "Meeting{" +
                "contact=" + contact +
                ", date=" + date +
                '}';
    }
}
